From: Sergio Costas Date: Sun, 14 Oct 2018 12:05:04 +0000 (+0200) Subject: Fix enumeration in HACKING.md X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2~1^2~77 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aa685310bb49e9d1ba99a254a63293bf9236838c;p=gnome-shell.git Fix enumeration in HACKING.md The HACKING.md file contains an enumeration in the Indentation and whitespace section, but the sentences look incorrectly divided. This patch proposes a fix for that section, reordering all its contents in a single enumeration, instead of a paragraph and an enumeration, and also reconstruct the sentences. --- diff --git a/HACKING.md b/HACKING.md index 8c064999a..0b86763da 100644 --- a/HACKING.md +++ b/HACKING.md @@ -10,15 +10,15 @@ Life isn't fun if you can't break the rules. If a rule seems unnecessarily restrictive while you're coding, ignore it, and let the patch reviewer decide what to do. -## Indentation and whitespace +## Indentation, braces and whitespace -Use four-space indents. Braces are on the same line as their associated -statements. You should only omit braces if *both* sides of the statement are -on one line. +* Use four-space indents. +* Braces are on the same line as their associated statements. +* You should only omit braces if *both* sides of the statement are on one line. +* One space after the `function` keyword. +* No space between the function name in a declaration or a call. +* One space before the parens in the `if` statements, or `while`, or `for` loops. -* One space after the `function` keyword. No space between the function name -* in a declaration or a call. One space before the parens in the `if` -* statements, or `while`, or `for` loops. ```javascript function foo(a, b) { let bar;